import request from '@/utils/request'

export function getMaintainorList(query) {
  return request({
    url: '/maintainor/getMaintainorList',
    method: 'get',
    params: query
  })
}

export function addMaintainor(data) {
  return request({
    url: '/maintainor/addMaintainor',
    method: 'post',
    data
  })
}

export function updateMaintainor(data) {
  return request({
    url: '/maintainor/updateMaintainor',
    method: 'post',
    data
  })
}

export function deleteMaintainor(id) {
  return request({
    url: '/maintainor/delete/' + id,
    method: 'delete'
  })
}

export function getMaintainorSelectItem() {
  return request({
    url: '/maintainor/getMaintainorSelectItem',
    method: 'post'
  })
}
